package com.ruoyi.common.entity.TransactionEntity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品规格值对象 product_spec_value
 * 
 * @author ruoyi
 * @date 2025-08-08
 */
public class ProductSpecValue extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 规格值ID */
    @Excel(name = "规格值ID")
    private Long id;

    /** 规格ID（关联 product_spec） */
    @Excel(name = "规格ID", readConverterExp = "关=联,p=roduct_spec")
    private Long specId;

    /** 规格值，如：红色、M、500ml */
    @Excel(name = "规格值，如：红色、M、500ml")
    private String value;

    /** 删除标志（0-未删除，1-已删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setSpecId(Long specId) 
    {
        this.specId = specId;
    }

    public Long getSpecId() 
    {
        return specId;
    }

    public void setValue(String value) 
    {
        this.value = value;
    }

    public String getValue() 
    {
        return value;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("specId", getSpecId())
            .append("value", getValue())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
